package cn.liontalk.StrategyPattern.duck;

import cn.liontalk.StrategyPattern.Duck;
import cn.liontalk.StrategyPattern.impl.FlyWithRocket;

/**
 * @author ZhouZhe
 * @version 1.0
 * @description 太空鸭的实体
 * @date 2019-01-09 16:45
 **/
public class SpaceDuck extends Duck {


    public SpaceDuck(){
        super();
        super.setFlyingStrategy(new FlyWithRocket());
    }

    @Override
    public void display() {
        System.out.println("我是头戴宇航帽的太空鸭!");
    }

}
